#ifndef BYTEDATAPRO_H
#define BYTEDATAPRO_H

#include <qstring.h>


class ByteDataPro
{
public:
    static ByteDataPro& instance()
    {
        static ByteDataPro instance;
        return instance;
    }
    QString CharArrayToHexString(QByteArray Buffer, int Len);
    QByteArray Hexstring2QByteArray(QString str);
    QString CharArrayToHexString(unsigned char *Buffer, int Len);
private:
    ByteDataPro();
    ~ByteDataPro();
    ByteDataPro(const ByteDataPro&)=delete;
    ByteDataPro& operator=(const ByteDataPro&)=delete;
};

#endif // BYTEDATAPRO_H
